import request from '@/utils/request'

// 查询水质指标异常占比统计列表
export function listDispatchWaterQualityIndicatorAbnormalRatioStats(query) {
  return request({
    url: '/system/dispatchWaterQualityIndicatorAbnormalRatioStats/list',
    method: 'get',
    params: query
  })
}

// 查询水质指标异常占比统计详细
export function getDispatchWaterQualityIndicatorAbnormalRatioStats(waterQualityIndicatorAbnormalRatioStatsId) {
  return request({
    url: '/system/dispatchWaterQualityIndicatorAbnormalRatioStats/' + waterQualityIndicatorAbnormalRatioStatsId,
    method: 'get'
  })
}

// 新增水质指标异常占比统计
export function addDispatchWaterQualityIndicatorAbnormalRatioStats(data) {
  return request({
    url: '/system/dispatchWaterQualityIndicatorAbnormalRatioStats',
    method: 'post',
    data: data
  })
}

// 修改水质指标异常占比统计
export function updateDispatchWaterQualityIndicatorAbnormalRatioStats(data) {
  return request({
    url: '/system/dispatchWaterQualityIndicatorAbnormalRatioStats',
    method: 'put',
    data: data
  })
}

// 删除水质指标异常占比统计
export function delDispatchWaterQualityIndicatorAbnormalRatioStats(waterQualityIndicatorAbnormalRatioStatsId) {
  return request({
    url: '/system/dispatchWaterQualityIndicatorAbnormalRatioStats/' + waterQualityIndicatorAbnormalRatioStatsId,
    method: 'delete'
  })
}
